package top.xia17.plugins.fast.user.model.query;

import top.xia17.plugins.fast.common.database.jpa.query.BaseQuery;
import top.xia17.plugins.fast.common.database.jpa.query.Query;
import lombok.Data;
import lombok.experimental.Accessors;
import top.xia17.plugins.fast.user.dao.entity.Dept;

/**
 * 用户查询条件
 *
 * @author xia17
 * @since 2021/7/21 20:03
 */
@Data
@Accessors(chain = true)
public class DeptQuery implements BaseQuery<Dept> {


    /**
     * 用户名like
     */
    @Query(type = Query.Type.INNER_LIKE)
    private String name;

    /**
     * 部门编码like
     */
    @Query(type = Query.Type.INNER_LIKE)
    private String code;

    /**
     * 邮箱like
     */
    @Query(type = Query.Type.INNER_LIKE)
    private Long pid;

    /**
     * 是否启用
     */
    @Query
    private Boolean enabled;


}
